Math Directives and Roles

one $ means inline double mean block

π=3.14159\pi = 3.14159

π=3.14159\pi = 3.141590x3ex1dx=π415 \int_0^\infty \frac{x^3}{e^x-1}\,dx = \frac{\pi^4}{15}

Numbering Math Equations

Use the math directive

wt+1=(1+rt+1)s(wt)+yt+1 w_{t+1} = (1 + r_{t+1}) s(w_t) + y_{t+1}

Macros

You can define macros that can be used later on
You can define up to 9 variables

\def\foo#1{#1^2} \fooy+\fooy\foox+\foox \foo{y} + \foo{y}\\ \foo{x} + \foo{x}

Linking to equations